import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import ReportDev from '@/views/datav/report-dev/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/report-dev',
    name: 'report-dev',
    component: ReportDev
  },
  {
    path: '/demo/sudoku5x5',
    name: 'sudo5x5',
    component: () => import('@/views/demo/sudoku5x5.vue')
  },
  {
    path: '/demo/jsonpathDemo',
    name: 'sudo5x5',
    component: () => import('@/views/demo/jsonpathDemo.vue')
  },
  {
    path: '/demo/testGlobby',
    name: 'testGlobby',
    component: () => import('@/views/demo/testGlobby.vue')
  },
  {
    path: '/demo/testVuedraggable',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable.vue')
  },
  {
    path: '/demo/testVuedraggable01',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable01.vue')
  },
  {
    path: '/demo/testVuedraggable02',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable02.vue')
  },
  {
    path: '/demo/testVuedraggable03',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable03.vue')
  },
  {
    path: '/demo/testVuedraggable04',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable04.vue')
  },
  {
    path: '/demo/testVuedraggable05',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable05.vue')
  },
  {
    path: '/demo/testVuedraggable06',
    name: 'testVuedraggable',
    component: () => import('@/views/demo/testVuedraggable06.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
